package com.linln.admin.good.validator;

import lombok.Data;

import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author timo
 * @date 2021/04/03
 */
@Data
public class ComponentsValid implements Serializable {
    @NotEmpty(message = "部件名称不能为空")
    private String title;
    @NotEmpty(message = "商品编码不能为空")
    private String goods_code;
    @NotNull(message = "部件数量（一个商品需要该部件的总数量）不能为空")
    private Integer component_num;
}